package com.iiiss.template.ssh.core.daos;

import java.util.List;

import com.iiiss.template.ssh.common.core.IDao;
import com.iiiss.template.ssh.core.beans.IExampleEvent;

/*
 * TemplateSSH - com.iiiss.template.ssh.core.daos - IEventDao.java
 * 
 * Copyright (C) 2011  Mingye Cheng <Cheng, Mingye at GMAIL>
 * 
 * IEventDao.java is part of <iiiStudio Template Framework> project.
 * This project is hosted at <http://iiiss-template-ssh.googlecode.com>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Revision history:
 * [2011-5-30] Mingye Cheng - Initial version established.
 * [2011-10-21] Mingye Cheng - Renamed to 'IExampleEventDao'.
 */
public interface IExampleEventDao extends IDao {

	public IExampleEvent createEvent(String title);

	public IExampleEvent getEventById(long id);

	public IExampleEvent getEventByTitle(String title);

	public List<IExampleEvent> getAllEvents();

	public void removeEvent(IExampleEvent event);

}
